add Makefile for out-of-tree build. And edit travis start script