Removed defects found by Coverity
Coverity scan support for Travis CI builds