port more changes from MAME (all of them for the Arm7core i hope)

..but while keeping Sellenoffs improvements from rev 2099