fixes to compile in linux