Add script to extract MacOSX10.6.pkg from dmg

Also fix download.sh to use the correct paths.
Upgrade deps to match Linux/Windows, -r1 version on intermediate tarballs, qt5
miniupnpc: Remove hacks. Clean fix.