mame4all: Try to fix compilation issue

Just add the missing libs (https://github.com/petrockblog/RetroPie-Setup/issues/509) and use the same -march CFLAG as RetroPie-Setup.
Merge pull request #510 from gizmo98/patch-1

mame4all: Try to fix compilation issue