Use GCC-compatible compiler flags when the compiler is not MSVC
Fix build error in Clang
Merge pull request #2 from dittos/master

Build on Mac