From Martin Naylor, "Fix for VS2010+ when compiling VPB."