Update mex.cmake

forgot CXXFLAGS on linux