Fix more warnings exposed by -Wmissing-prototypes.