Build script for Ubuntu

Thanks to Andrew Matusiewicz (andrew.matusiewicz@gmail.com) for the patch.