Compile and link fix for Ryan's branch (nw)

git-svn-id: svn://dspnet.fr/mame/branches/ryan@23287 749742ba-7341-0410-aadc-df50b521781e