Fixed compiler error on windows