locate: fix compilation (with the new version of typedtree)