fix compilation warnings (#66)

Fixes #66.
Merge pull request #118 from aspiers/fix-compile-warnings

fix compilation warnings