Implement clearenv in the portability headers