[BUILD] code did not build in full debug mode
diff --git a/src/checks.c b/src/checks.c
index f0f18d3..20ff8db 100644
--- a/src/checks.c
+++ b/src/checks.c
@@ -10,6 +10,7 @@
  *
  */
 
+#include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/proto_http.c b/src/proto_http.c
index e3723c1..2ce6786 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -634,7 +634,7 @@
 		/* DEBUG code : this should never ever happen, otherwise it indicates
 		 * that a task still has something to do and will provoke a quick loop.
 		 */
-		if (tv_remain2(&now, &t->expire) <= 0)
+		if (tv_ms_remain2(&now, &t->expire) <= 0)
 			exit(100);
 #endif
 		*next = t->expire;