Extend boot loader so that it can be compiled to work over a serial port.