Fix library and executable dependency
Add Travis-CI configuration