fix compile warning with clang 3.4.1
fix compile warning with gcc 4.9.0