MAMEdev hit this problem a few years back as well. Thankfully, the end result of code that needed to be ripped out and rewritten ended up being pretty small comparative to the whole project. A lot of that came down to there being no corporate interests involved, so no corp VS author arguments-- the worst ones to deal with were contributors who were adamant about keeping the original non-commercial license on their contributions.