Fixes to compile in linux