fix for compilation on Windows