Fixed bug in CXX_FLAGS forwarding and added correct compile flags under Linux.