fix compiler warnings
Merge pull request #186 from paulz/fix_warnings

fix compiler warnings