Compile everything with -dynamic to avoid using GHC's linker.