Update Travis-CI config and fix building.
Remove unrelated gitignore.