Added CFLAGS for CGAL on Linux

Fixed a minor bug in propagating CXX_FLAGS and added correct branching for Linux into the CMakeLists.txt file.

This patch fixes compilation with CGAL on Ubuntu Linux.