fix warnings and travis config