diff --git a/applications/reconstruct/src/main.cpp b/applications/reconstruct/src/main.cpp
index c1afeed96955b310adbc90ea76a2dc07e5473dc7..4d239758b19401e3d749ae34829401e298aba332 100644
--- a/applications/reconstruct/src/main.cpp
+++ b/applications/reconstruct/src/main.cpp
@@ -20,6 +20,7 @@
 #include "ilw/ilw.hpp"
 #include <ftl/render/splat_render.hpp>
 
+#include <fstream>
 #include <string>
 #include <vector>
 #include <thread>
diff --git a/components/rgbd-sources/src/source.cpp b/components/rgbd-sources/src/source.cpp
index 610f9d08a6c067063f3061b90b6a343080f245fd..4482448cfe05bbd08c22082861f4eeadf1daafc8 100644
--- a/components/rgbd-sources/src/source.cpp
+++ b/components/rgbd-sources/src/source.cpp
@@ -19,6 +19,8 @@
 using ftl::rgbd::detail::RealsenseSource;
 #endif
 
+#include <fstream>
+
 using ftl::rgbd::Source;
 using ftl::Configurable;
 using std::string;