Add a library function to read environment variables.