Fix warnings with vs2010 compiler