I'm bored! Here is a script that automates building the required libs.

Note: You will still need to install a suitable build environment first, containing: autoconf, automake, gcc, gcc-c++, libtool, make, nasm, pkg-config and the zlib development support files.