mercurial: fix cross build.