Fix qt on mountain lion

See homebrew/homebrew#28859