Where is MAX_BED_PID defined?  I am getting a compilation error in the Dev branch using a config that previously worked and has heated bed PID enabled after this commit, because MAX_BED_PID is not defined anywhere.