Keep in mind that what I wrote in my other post is an assumption.
I assume that MAME and MESS developers build the 'other version' of their code before checking it in, and often or always build the combined build also. I would be surprised if they don't since it's kind of a fundamental rule of software development that you check all reasonable build flavors before submitting a change.