fix windows compiler warnings and vs2010 reswig