fixed compilation on Windows.