Removed most of Darwin-specific configuration.

* Pass CMAKE_CXX_FLAGS to cmake subprocesses instead.