Moved setenv/unsetenv function definitions to Main.cc where they are now needed following movement of timezone setting code there.