Fixed some windows build warnings

fixing #519