Fix warnings in pedantic build.