Add support for building 3rd party stuff with our own Makefiles

Build XMP with this since the its built-in makefile/autoconf is crap