Play nicely with osx mavericks

Make it easier for pip installs on osx mavericks as per #7146. Should have no side affects for linux or older versions of osx.