Include stdlib.h for getenv when !NDEBUG.