bootloader-update-dfu: port to new flash API
more k24 porting
drop wchar.h, we don't seem to need it
toolchain: build hex files as well