If this one works, and the newer one doesn't, then I guess you're gonna have to use the new MAME that has MESS included, because that's the one the history.dat is made for now. They probably changed the .dat format to accommodate the new systems. Maybe you could go to the MAMEUI forums and check or ask about support for the new .dat?
Maybe things have changed, but years ago the MAMEUI team said they were not going to update MAMEUI anymore, as in, they were not going to make any new additions to the emulator other than new/updated game drivers.
So if the history.dat changed, it probably doesn't support it anymore. Go to their forums and ask just in case.