Merge pull request #133 from eregon/fix_clang_warning_tautological

Fix the Clang warning by a better approach: use template specialization
Removed most of Darwin-specific configuration.

* Pass CMAKE_CXX_FLAGS to cmake subprocesses instead.