a lot of compiler warning fixes
Merge pull request #6 from Youw/master

a lot of compiler warning fixes