Build zlib properly

Try and build static AND shared libs for ENet and libXDiff (untested)

Export RC=windres in config.sh (some things, like zlib, use this instead
of WINDRES)

Hide Pango's DllMain function behind a DLL_EXPORT ifdef