fixed compillation warnings
Merge pull request #239 from civanch/fixcomp

Fixed compilation warnings.