windows port.
fix msvs warning.