Build and copy libffi shared libraries correctly and enable dynamically linking ghc.