stdlib.h is required for free()

--- lib/output.c
+++ lib/output.c
@@ -20,6 +20,7 @@
 #include <sys/param.h>
 
 #ifdef STDC_HEADERS
+# include <stdlib.h>
 # include <string.h>
 #endif
 
--- lib/wrapper.c
+++ lib/wrapper.c
@@ -18,6 +18,7 @@
 #include <errno.h>
 
 #ifdef STDC_HEADERS
+# include <stdlib.h>
 # include <string.h>
 #endif
 
