Use version tarball and fix hg build dependency