Fix some compiler warnings
Merge pull request #5 from xiaosuo/master

Fix some compiler warnings