Dynamic linking for Haskell and C objects