Add support for setenv and setenv_safe.
Merge pull request #79 from GreatFruitOmsk/master

Add support for setenv and setenv_safe. Refs #78.