Fix compilation with different cmake build directory.
Authored by: bruno.herbelin 2011-08-14
Parent: [r462]
Child: [r464]