Patch source files to compile under MacOSX 10.9

See http://trac.macports.org//ticket/42459
Merge pull request #3 from sbesson/342_109

Patch source files to compile under MacOSX 10.9