Per-thread allocation counters and limits

This reverts commit f0fcc41d755876a1b02d1c7c79f57515059f6417.

New changes: now works on 32-bit platforms too.  I added some basic
support for 64-bit subtraction and comparison operations to the x86
NCG.
Fix build errors on Windows (these tests still don't work though)
fix allocLimit3 on Windows
Test #9066 in th/T9066
Fix #9066.

When splicing in a fixity declaration, look for both term-level things
and type-level things. This requires some changes elsewhere in the
code to allow for more flexibility when looking up Exact names, which
can be assigned the wrong namespace during fixity declaration
conversion.

See the ticket for more info.
Untabify template-haskell.
Remove unboxed Int# fields from NameFlavour (#9527)
Derive Generic for TH types (#9527)
Test #8100 in th/T8100
Fix #8100, by adding StandaloneDerivD to TH's Dec type.
Test #9064 in th/T9064
Fix #9064 by adding support for generic default signatures to TH.
Test #9204 in roles/should_fail/T9204
Fix #9204 by outputting extra info on boot file mismatch.

[skip ci] -- testsuite wibbles are in next commit
Testsuite wibbles due to #9204
Fix #9788 by giving `coerce` the right type.

No test case added, as the original mistake is just one level
up from a typo.
Test #9404 (typecheck/should_compile/T9404 and T9404b)
Testsuite wibble due to #9404

[skip ci]
Fix #9404 by removing tcInfExpr.

See the ticket for more info about the new algorithm. This is a small
simplification, unifying the treatment of type checking in a few
similar situations.
includes/Stg.h: define _DEFAULT_SOURCE for glibc-2.20

_BSD_SOURCE we are using for 'gamma()' and friends
was deprecated in glibc-2.20 in favour of '_DEFAULT_SOURCE'.

gcc says:

    In file included from /usr/include/math.h:26:0:
        0,
                         from includes/Stg.h:69,
                         from /tmp/ghc19488_0/ghc19488_2.hc:3:

    /usr/include/features.h:148:3:
         warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
         # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
           ^

Patch fixes testsuite failures on UNREG
(stderr are not cluttered by warnings anymore).

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>