Added support for SWIG generation on Macintosh OS X.