Use dynamic linking only if the GHC package is compiled with -dynamic (#8376)
Fix up the conditions for zeroing slop (#8402)
Fix a bug in the canned selector code when profiling.