Fix prototypes and parameters for compiling with enabled warnings.