Fixed errors in wrapper generation when using Visual Studio 2010