Compile fixes and tidy-up

Two unrelated fixes and a clean-up.
 * wrong signature in timegm(); its parameter is *not* const.
 * tidied up EvalContextVariablePut() and commented a FIXME.
 * condition a test function's definition on its use, to avoid warnings when unused.