Add hg as dependency for external lib