Fix compilation issues on WIn32