Building u-boot tools/env with denx.de:u-boot-arm.git/omap3

Has anyone built tools/env with http://git.denx.de/?p=u-boot/u-boot-arm.git;a=shortlog;h=refs/heads/omap3 ? This provides the fw_setenv/fw_printenv programs to write the u-boot flash environment variables from within running Linux.

I believe a few of us have tried, but failed either due to a missing header file 'mtd/mtd-user.h' (as the first error) or, when setting MTD_VERSION=old, with the following error:

/mnt/arago/u-boot-arm/include/linux/mtd/mtd.h:157: error: expected declaration specifiers or '...' before 'phys_addr_t'

Just wondering if anyone has already solved this.