So I’ve forked it and fixed it (along with a couple of other minor nits).
Claes said he’ll apply the patch at some point. So hopefully when 1.13 comes out, this won’t be necessary.
Of course, really I should get to grips with MacPorts and submit a Portfile…
Claes has imported the fixes into his tree so the next release should have them in.