Fixed Windows port.