compile fixed for windows