Fix issue 9744 Poor error message taking address of thread-local variable at compile time

Move the error message from the glue layer, into the interpreter.
Also fix an incorrect entry point into the glue layer.
Fix issue 9745 Allow &staticvar in CTFE

Use SymOffExp for non-dereferenceable pointers to static variables.
It's already supported in the const-folding code, now support it in
CTFE as well. This commit adds full support for pointer arithmetic.
Allow pointer type-painting for pointers to global variables
Allow == comparison of absolute address pointers

They are mainly fake pointers, eg as used for Windows HANDLEs.
Comparison is allowed in const-folding, should be valid in CTFE too.
Merge pull request #1763 from donc/ctfeStaticPtr9745

9744 and 9745: allow taking address of static variables in CTFE