Fixed Windows platform problems.