fix compiling in vs2008 (missing adds in vcproj, C90 variable declarations)