Category is a side project, not part of mame. You need to import catver.ini.
Take those threads you linked to with a grain of salt. That whole confusion was likely due to some one using a poorly modified version of mame. Always use official or one that you know exactly whats patched. Even those widely known pi images is full of crap.