Fix build problem on Snow Leopard