Fix build configuration for travis.