Fix a type error in a configure snippet that broke with LLVM 22. While here, sync up some prototypes to eliminate a slew of warnings.