i've put an updated copy on sources in contrib/forsyth/hocplus.tgz . just diff against the original to see the small changes (including mkfile).
ape doesn't provide gamma or cbrt, but if they're in c99 i suppose it could. just add a local copy temporarily. gamma isn't in my copy of c99 though: it defines lgamma and tgamma. (the old gamma actually computed lgamma, i think.)