Extending a c++ compiler for OSX

Objective-C required compiler flags
-MMD typo
Merge branch 'cmake-build' into cmake-osx
Merge branch 'cmake-build' into cmake-osx
Merge branch 'cmake-linux' into cmake-osx
Merge branch 'cmake-windows' into cmake-osx