If you installed cairo on Mac OS X with Homebrew you'll get error
As alternative you can use: https://github.com/asfdfdfd/fceuxq/commit/7f21327f5353d066a10f66222c6e3dfa31baac80...
Probably this should go to the "General" group, but i could not check on Windows...
Compilation error with LUA=0 at r3082