Changed travis setup to compile for multiple compiler versions and also on osx.