fixed clang 3.4 compile warnings