If you have the Arduino IDE running then you already have everything you need (I'm less sure about Macs, but I think this is true). Just get the half-dozen-or-so files that make up the bootloader source code and put them in a directory in .../hardware/arduino/bootloaders/
.