Fix for compile error on windows