diff --git a/src/remote.c b/src/remote.c
index ba971fb..56a19de 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -34,6 +34,8 @@
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <netinet/tcp.h>
+#include <sys/types.h>
 #include <arpa/inet.h>
 
 #include <net/if.h>

diff --git a/src/hv.c b/src/hv.c
index bea2636..bf5cc07 100644
--- a/src/hv.c
+++ b/src/hv.c
@@ -42,7 +42,6 @@
 #include <fcntl.h>
 
 #include <libgen.h>
-#include <getopt.h>
 #include <pthread.h>
 #include <termios.h>
 
