Fix builds failing on Travis CI