I re-did everything, but even if I apply the patch right after the git checkout and then run .autogen.sh and configure without errors, I still get errors when running make.