Fix VS 2005 compatibility issue