revert some of the ported code of MAME to restore some of the games functionality

git-svn-id: svn://svn.code.sf.net/p/pinmame/code/trunk@3576 6f51dfdd-75df-4273-8f3b-818b1e6aa8bf
fix warnings

git-svn-id: svn://svn.code.sf.net/p/pinmame/code/trunk@3577 6f51dfdd-75df-4273-8f3b-818b1e6aa8bf