Fixed compilation warnings
Merge pull request #239 from monich/warnings

Fixed compilation warnings