fix compile warnings
Merge pull request #9 from tony2001/fix_compile_warnings

fix compile warnings