Fix build with gcc 14
https://bugs.gentoo.org/925105

--- a/components/bsa/bsa_file.cpp
+++ b/components/bsa/bsa_file.cpp
@@ -26,6 +26,7 @@
 #include <components/files/constrainedfilestream.hpp>
 
 #include <cassert>
+#include <algorithm>
 
 #include <boost/filesystem/path.hpp>
 #include <boost/filesystem/fstream.hpp>
--- a/apps/openmw/mwstate/charactermanager.hpp
+++ b/apps/openmw/mwstate/charactermanager.hpp
@@ -1,6 +1,8 @@
 #ifndef GAME_STATE_CHARACTERMANAGER_H
 #define GAME_STATE_CHARACTERMANAGER_H

+#include <list>
+
 #include <boost/filesystem/path.hpp>

 #include "character.hpp"
--- a/apps/openmw_test_suite/nifloader/testbulletnifloader.cpp
+++ b/apps/openmw_test_suite/nifloader/testbulletnifloader.cpp
@@ -13,6 +13,7 @@
 
 #include <algorithm>
 #include <type_traits>
+#include <iomanip>
 
 namespace
 {