fixes for travis-ci build