New rebasing of Mednafen. Tries to be more upstream-friendly.