fixed CXXFLAGS so that it is possible to send debug flags to C++ codes
now send total size as an integer in MB, initialize m_numvar