Fixed compilation with C::B and CMake.

Note that the precompiled infrastructure won't be used for now
when using those build systems.

This will have to be added in another commit.