Fix warning treated as error on windows