Some .o files need to be rebuilt if config.h changes. Adding it to the list of headers may still fail to solve the problem, because some of the Makefiles use implicit rules or do not list dependencies properly.
'configure' and 'make install' now work. There may be problems with hard-to-test features like MAXLOAD.