Fix build and installation, automatically download tarball