add support for ghc6.5 and IntelMac