normaly there is no need to rebuild the libs
how ever on slackware, slax and vector linux all libs are installed

but on ubuntu you need:

sudo apt-get install libOGG-dev
sudo apt-get install libvorbis-dev
sudo apt-get install libasound-dev

Joshy
