Fixes build on OSX 10.9
Use OSX on travis
Add switch for OSX 10.9
Merge pull request #834 from cheif/macosbuildfix

Fixes build on OSX 10.9