fix vs2012 build