If you've gone by the guide on the wiki, it's a bit outdated. You should now use Project->Build configurations to build MESS. For your other errors, search in the SDLMAME forum, there are solutions for that.