Add patches: fix autodocs and agent makefile