Fixed some windows build warnings