set flags for compilers not per platform
fix #120
Merge pull request #121 from MarcAntoine-Arnaud/fix_detection

Replace compiler flag instead of platform flag.
Tested : OK