Use the shared C wrapper code in ghci.c too