Fixing support for Windows

I put in the C99 fixes and also added Visual Studio 2010 config files.