[Git][ghc/ghc][master] compiler: fix regression when compiling foreign stubs in the rts unit