They'd have a tough time enforcing that against the right of first sale doctrine. Essentially, it is a EULA clause, and when I compile and install MAME I have agreed to no EULA. Only when I distribute it do I agree to their license, which means I can't sell it. But that doesn't mean the terms of their license are binding to me as a user, charging for play on my machine.