Log Message: Restore patches to configure script lost in an update some time back. Does not fix the build, but advances it; now it's having some kind of bizarre problem with <sys/queue.h>. While here, add three small patches to silence a large pile of const warnings that made it impossible to see anything else that was going on.