Update: I've managed to get the command line version built and working, sort of:
I've tested with Hot Chase, Cyberbots, Aggressors of Dark Kombat and Godzilla (pinball machine) so far and only the first songs as the key commands don't appear to be working, but I definitely hear some sound! I had to comment-out some code in roms.c that was causing an illegal hardware instruction error, and also remove the reference to the lasound library in the make file before it would build. I only have SDL 2 on my machine but this doesn't seem to be an issue. Using pulseaudio didn't work even though I have the library installed, so I'll stick with SDL for the moment.
Batman - Revenge of the Joker (Genesis game) gives me a segmentation fault. The fm2612.c file does not appear to be being included in the build, so I'll ignore these games for the moment as I presume it's related to this file.