First pass at changes required to save program file to flash memory. See associated changes in the motor repository.
This builds under Cygwin and passes regression.