More C89 fixes, making sure to include config.h from all source files.