I managed to include a few header files before it complained about a missing glib-object.h. Which is when it struck me - I don't want the main program to be dependent on GTK 2.20 and libxml2 just to satisfy librsvg when it already depends on an outdated version of Qt 3.3 and a lot of other proprietary stuff with a build environment that only that computer has. So I think I'll spin the function that this part of the program is supposed to fulfill into a separate program, with its own build environment. It'll communicate with the big complicated Qt program with some other file format which I'll dream up myself.
So in the end, I'm not forced to use librsvg in a Visual Studio environment, which is the big plus. Thanks for the input guys!
Mothership: Thuban 1055T@3.7GHz, 12GB DDR3, M5A99X EVO, GTX470+Icy Vision Rev.2@840/3800, Vertex 2E 60GB
Supply ship: Sargas@2.8GHz, 12GB DDR3, M4A88TD-V EVO/USB3
Corsair: Macbook Air Ivy Bridge