Second patch for the Mac OS X build by historic_bruno (check http://trac.wildfiregames.com/ticket/2442).

I've kept the differences with line endings as they were.
That shouldn't be a problem when it's moved to svn anyway.