remove deprecated getenv and putenv functions

Change-Id: I0c66e8494e58243d2f5867f31325ae58e3851d02
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>