Avoid using gcc-specific flags on not-gnu compilers
Restored whitespaces in CMakeLists.txt
Merge pull request #82 from ctrlaltca/osx-compilation-fix

Fix compiling on OSX