Make libmono and dependencies compilables with the VC++ compiler

__var needs to be declared at the beginning of the code block, at least for typedef types, otherwise error C2275: 'guint' : illegal use of this type as an expression. Looks like a MSVC bug.

After this change, I can compile the libmono.vcxproj project and its 5 dependencies.