--- common/safeuuid.h.orig	2013-12-04 00:13:34 UTC
+++ common/safeuuid.h
@@ -55,6 +55,7 @@
 
 // UUID API on FreeBSD, NetBSD and AIX.
 
+# include <stdlib.h>
 # ifdef _AIX
 /* AIX uses a byte typedef in its <uuid.h> which collides with ours, so use a
  * macro to rename theirs out of the way.