Fix VS2005 compatibility issue