branch mw4: cleanup by partial merge from _mw4fbw
branch mw4: fix reset problem by changing compiler output file format from COFF to ELF/DWARF