compile fix for windows