Only use unsetenv() when it is available