fix for windows
fix compile warnings