Fix ghc-inplace.c on Windows; new code based on ghci.c