tweaks to compile in a c++ project