fix compile error flagged by latest clang++ 3.4.
fix warnings flagged by latest clang++ 3.4.