Fix to build properly on windows