fixed issues around ghc-7.8.2 and static/dynamic/loadable files with hsc2hs (I think)