--- a/main/gui/source/messaging/linux.cpp
+++ b/main/gui/source/messaging/linux.cpp
@@ -3,3 +3,5 @@
+#define _GNU_SOURCE 1
+#include <unistd.h>
 #include <stdexcept>
 #include <fcntl.h>
 #include <sys/file.h>
--- a/lib/libimhex/include/hex/helpers/http_requests_native.hpp
+++ b/lib/libimhex/include/hex/helpers/http_requests_native.hpp
@@ -5,2 +5,3 @@
     #include <string>
     #include <future>
+    #include <mutex>
--- a/lib/external/libromfs/lib/include/romfs/romfs.hpp
+++ b/lib/external/libromfs/lib/include/romfs/romfs.hpp
@@ -7,2 +7,3 @@
 #include <cstdint>
 #include <cstddef>
+#include <type_traits>
