Added platform compatibility header.

Added an header file dedicated to platform-specific hacks/workarounds.
Fixed cast in bool operators.

Removed warning suppression, added proper bool coercion in cf::platform.