diff --git a/configure.ac b/configure.ac
index 9b81e6c6..a5074afe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,7 +74,7 @@ AC_CHECK_LIB( [tag],
AC_CHECK_LIB( [config++],
[main],
,
- [AC_MSG_ERROR([libtag not found!])])
+ [AC_MSG_ERROR([libconfig++ not found!])])
AC_CONFIG_FILES([Makefile
src/Makefile
diff --git a/src/database/DatabaseHandler.cpp b/src/database/DatabaseHandler.cpp
index d4267fed..02803607 100644
--- a/src/database/DatabaseHandler.cpp
+++ b/src/database/DatabaseHandler.cpp
@@ -17,8 +17,6 @@
* along with LMS. If not, see .
*/
-#include
-
#include
#include
@@ -53,7 +51,12 @@ Handler::configureAuth(void)
authService.setAuthTokensEnabled(true, "lmsauth");
authService.setIdentityPolicy(Wt::Auth::IdentityPolicy::LoginName);
authService.setRandomTokenLength(32);
+
+#if WT_VERSION < 0X04000300
authService.setTokenHashFunction(new Wt::Auth::BCryptHashFunction(8));
+#else
+ authService.setTokenHashFunction(std::make_unique(8));
+#endif
auto verifier = std::make_unique();
verifier->addHashFunction(std::make_unique(8));
diff --git a/src/utils/Path.cpp b/src/utils/Path.cpp
index 8f6a6ede..2f937ce2 100644
--- a/src/utils/Path.cpp
+++ b/src/utils/Path.cpp
@@ -17,6 +17,7 @@
* along with LMS. If not, see .
*/
+#include
#include
#include