Add workarounds for toolchains that are dumber than others.

Upon experimenting with various optimizations (that can actually provide
an improvement in performance), some compilers have decided they don't like it.
If a less insane compiler is used, business can go on as usual by specifying
the DEBUG_COMPILER_IS_LESS_STUPID flag to true.