Fix lifetime issues
Change rust version in .travis.yml to nightly