Adding support for Ubuntu 12.04

Adds support for building on Ubuntu 12.04 (for all folks who haven't upgraded yet)

This also fixes a minor bug in the deps.sh script, where it doesn't exit if fbthrift/folly fail to build