Revert "Use putenv to implement unsetenv/clearenv"

This reverts commit fa147bd7ecb086f4fb9a4afea16b946693a822ce.