Fix cross-compilation and drop dependency towards X11

Hi there,

Here are two patches I created to make libgdiplus work on our system, which is MIPS based and without X11.

Regards,
Paul Cercueil