fixing gcc builds