Include stdio.h + stdlib.h for getenv.

  This should ease future porting on *BSD, and updates #181.