compile: use -threaded if main program uses threaded RTS
compile: use -threaded if main program uses threaded RTS

If the main program was linked with threaded RTS, then the custom
executable probably needs it too.  In this case, pass -threaded when
compiling the custom executable.

willdonnelly/dyre