You're using the standard includes and libraries included with VS Studio. It's much better to use the ones included with Microsoft's SDK. I'm using this:
http://www.microsoft.com/downloads/d...displaylang=en (it'll work for any Windows OS) Install it, and be sure to add the SDK's bin, includes, and lib directories to the appropriate sections under VCC Directories. (The same place you added the perl, mysql, and zlib directories)