Fix some warnings.

These are easy to solve and reduce the noise in the Travis build.