Fixes for warnings found by -Weverything