Update build script for Cairo and Boost dependencies.

Also includes some other minor fixes. ^__^