fix build error on x64 and vs2008