Develop

1. Let cmake automatic detect and set the value of CMAKE_CXX_COMPILER on Mac OS.
2. Remove trailing whitespace in some files.