make hg a build dependency, update to v0.9.9