[Qa] Fix compilation with CMake (with gcc 4.2.1 on OSX 10.7)
[Qa] Fix compile errors with gcc 4.2.1