Fix compilation on Windows