The upgrade of the Brookhaven Linac Isotope Producer (BLIP) and the BNL Linac