fix up coverity/travis issues/warnings