What video card do you have?
I know that some nVidia drivers have problems when you try to compile OGL code with them installed, uninstall them to restore your X\'s own GL libs, recompile, then reinstall the drivers and test. That should do it, at least for the OGL part.
Regarding sound, what drivers do you have? (OSS or ALSA) if it is the later then, you may need to install ALSA-lib or ALSA-oss to be able to compile code to use either ALSA or OSS.
Just some random thoughts.