fix makefile and return code for travis