--- src/compat.hh.orig	2005-07-02 12:21:35.000000000 -0500
+++ src/compat.hh	2013-11-06 18:24:38.000000000 -0600
@@ -27,6 +27,10 @@
 #if WINDOWS
 #  include <windows.h>
 #endif
+
+#if HAVE_SETENV
+#  include <stdlib.h>
+#endif
 //______________________________________________________________________
 
 // No operator<< for uint64, so define our own