fix compiling with new version of miniupnp, and make sure all packages get copied to the 'built' directory