windows compiling fix