Patch source files to compile under MacOSX 10.9

See http://trac.macports.org//ticket/42459