Thanks all...
minasss, if I compile using Mesa and then I distribute the game, will it run on other people's machines using Mesa or will it use the local hardware acceleration?
If you just link dynamically to libGL, it should use whatever is installed on the target system - either Mesa (which *has* hardware accelerated backends for some cards), or the proprietary implementation from Nvidia or ATI.
The VM thing is actually a really good idea... unfortunately my options are sharply restricted on that front because my mac is PPC and can't run VMWare etc. Thinking about it though maybe I can get Linux to run under qemu... I will see how workable that turns out to be.
Qemu is trivial to set up if you don't need tun/tap networking. I usually just set up port redirection for SSH or other ports i need.
qemu -redir tcp:2222::22 disk.img
I use a setup like that at work to run a script locally that logs into the Qemu system, runs a script on there that checks out some stuff from SVN, compiles it and then downloads the build to my local machine with scp.