Fix qt on Leopard

This fixes compiling qt on Leopard.
Also: please add a comment describing what this commit is fixing.