fix compile warnings
Merge pull request #23 from guangbin79/fix_api

fix compile warnings