mercurial: fix build