Include unistd.h

unistd.h defines int close(), for le/gcc 4.8.1.

Change-Id: Ica81ab459da79bd34bea8fdbf6685c108027d0dc
diff --git a/configure.ac b/configure.ac
index 8d21dbb..996082b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
 AC_ARG_WITH(sanitized-headers,
       AS_HELP_STRING([--with-sanitized-headers=DIR],
          [Specify the location of the sanitized Linux headers]),
-      [CPPFLAGS="$CPPFLAGS -idirafter $withval"])
+      [CPPFLAGS="$CPPFLAGS -isystem $withval"])
 	  
 # Checks for header files.
 AC_CHECK_HEADERS([fcntl.h netinet/in.h sys/ioctl.h unistd.h])
diff --git a/ipacm/inc/IPACM_Defs.h b/ipacm/inc/IPACM_Defs.h
index 37a9ef5..21255f3 100644
--- a/ipacm/inc/IPACM_Defs.h
+++ b/ipacm/inc/IPACM_Defs.h
@@ -40,6 +40,8 @@
 #ifndef IPA_CM_DEFS_H
 #define IPA_CM_DEFS_H
 
+#include <unistd.h>
+#include <fcntl.h>
 #include <linux/msm_ipa.h>
 #include "IPACM_Log.h"