fixed windows compilation issues