Some fixes to allow to compile in GNU/Linux