The patch is mine, but I found that MacPorts is using the same patch: https://trac.macports.org/ticket/23836
The maintainer doesn't support OS X, so there's no need for it to be reported back upstream. 
Some discussion on how to compile it on OS X: http://lists.apple.com/archives/xcode-users/2005/Oct/msg00791.html