fix windows build
fixing VS12 compile warnings