CMake: Respect CXXFLAGS set in environment

Without this change the `CXXFLAGS` environment setting is not respected (tested on OS X 10.8/clang++)
Merge PR 838

Conflicts:
	CMakeLists.txt