VS2010 build: Prepare compat/jansson-2.5.

Cherry-picked by veox.

Not a big fan of modifying compat libraries, makes it harder to maintain
later on. See if these changes are relevant upstream.