Fix the config_perms invalid argument bug on cc all. Add the patch uploaded to d.o to the makefile.