fixed some warnings of clang 3.4