travis ci: copy headers and check library path