Fix warnings from -pedantic in scripts.