add configuration for Travis CI
fix compiler warnings