Replace previous tryReadMVar functionality but only for ghc >= 7.8.3. We also needed to add CPP-flag-setting conditionals in test stanza