Fix vs2012 build