Fix QT on mavericks

This PR supersedes #5: bumps the homebrew formula version, and gets the specs passing. It also fixes #4.

Big thanks to @jingweno for the majority of the work on this one, hunting down the appropriate changes from homebrew!