Fix qt on Leopard

This fixes compiling qt on Leopard.