using g++ instead of gcc