Fix some warnings.

These are easy to solve and reduce the noise in the Travis build.
Merge pull request #816 from redstar/warnings

Fix some warnings.