Fix issues with project generation under Windows.