mware: add compatibility stubs for byteorder.h and pgm.h