fix some VS10 errors