fix compilation of generated headers on VS 2008