install-mongodb: allow build-tmp-dir + fix a bug with build-threads