[cvs-nhc98] patch applied (hat): Many tweaks for ghc-6 compatibility, especially FFI stuff.