ghc static compilation fix