Fix qt on Leopard

This fixes compiling qt on Leopard.
Has this been submitted upstream to Qt's review board? Also, would be good to use commit URLs directly rather than subsets.