Fix conditional compilation of tests using glob expressions.
Simplify check for strtoll and strtoq.