fix a bunch of warnings for travis-ci