linking problems after switching from GHC5 to GHC6