Fix compilation with Clang
Fix the platform defines chaos