Switch to Ubuntu 12.04, and fix CVE-2014-2525

Addresses #3