Basing on wallyweek's work I have put together the code to build almost everything as system lib:
http://lesloueizeh.com/belegdol/mame-systemlibs.patch
Feedback is welcome. Also, how would I go about submitting this?