compile fix for Windows