Fixed CXX_FLAGS -> X_FLAGS