All the changes needed to build on OSX. Enabled OSX testing on travis-ci.
Review actions.
Added PREFIX to include path for Jasper.
Merge pull request #25 from pelson/osx_build_rebased

All the changes needed to build on OSX.