fix build with vc2005