Fix travis build

Added a Makefile and updated travis config to use it.