mercurial: fix compilation on Snow Leopard