--- a/configure	2012-11-03 09:08:09.373041529 +0000
+++ b/configure	2012-11-03 09:08:31.999585979 +0000
@@ -705,6 +705,7 @@
 #  mkstemp missing?
 printf "checking for mkstemp... "
 printf "#include <unistd.h>
+#include <stdlib.h>
 int main(int argc, char *argv[]) { int x; char *y = \"abc\";
 x = mkstemp(y); return 0;}\n" > _tests.cc
 $CXX $CXXFLAGS _tests.cc -o _tests 2> /dev/null
