Place intermediate files in a variant directory.
For now, build with debug information.
Don't crash if we can't initialize sound.
Turn all of the vsprintf()s into vsnprintf()s.