- fix all complaints from clang static analyzer 3.6