include fixes for *BSD
diff --git a/examples/newplaylist.c b/examples/newplaylist.c
index b45495e..a5caf86 100644
--- a/examples/newplaylist.c
+++ b/examples/newplaylist.c
@@ -21,6 +21,8 @@
  */
 #include "common.h"
 #include "string.h"
+#include <stdlib.h>
+#include <limits.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>