Add a script for travis

Also fix build