fixed some clang 3.4 warnings