Prevent loading gtk.immodules on Tiger or Leopard

the quartz im uses 10.6 API