compile fix for win