Add the -threaded ghc compiler option for proxy call in threaded environment