libwinpr-environment: fix extended functions