Only explicitly use libc++ with clang on OSX since libc++ was included, OSX 10.7
brew install workarounds on Travis

Cherry-picked 6c8c761 from https://github.com/wsfulton/swig.git, see
discussion at https://github.com/travis-ci/travis-ci/issues/1961