Fix some warnings
Merge branch 'master' into travis.linux