diff --git a/client/nonce2key/nonce2key.h b/client/nonce2key/nonce2key.h
index 026b8cfc4..807c2f2f1 100644
--- a/client/nonce2key/nonce2key.h
+++ b/client/nonce2key/nonce2key.h
@@ -20,6 +20,7 @@
 #include "common.h"
 #include "mifare.h" 	// nonces_t struct
 #include "ui.h"			// PrintAndLog
+#include "util.h"       // FALSE / TRUE
 #include "proxmark3.h"
 #include "mifarehost.h"
 
diff --git a/client/util.c b/client/util.c
index 0d24ac8ee..f70b5aed8 100644
--- a/client/util.c
+++ b/client/util.c
@@ -12,6 +12,8 @@
 #define MAX_BIN_BREAK_LENGTH   (3072+384+1)
 
 #ifndef _WIN32
+#include <sys/ttydefaults.h>
+
 int ukbhit(void) {
   int cnt = 0;
   int error;
diff --git a/client/util.h b/client/util.h
index c92493e80..701662c3e 100644
--- a/client/util.h
+++ b/client/util.h
@@ -14,6 +14,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <math.h>		// math.pow
+#include <time.h>       // time, gmtime
 #include "proxmark3.h"	// time_t
 #include "data.h"		// for FILE_PATH_SIZE