fixed for windows compilation