Cleanup some compiler warnings.

Don't use K&R-style prototypes, and always at least specify void arguments.