upnp: only include std when available

Change-Id: I7b63b7e8afac3151b542cbcfcea5da770fd4c845
diff --git a/src/upnp/upnp_context.cpp b/src/upnp/upnp_context.cpp
index 35fdb50..5aa3f78 100644
--- a/src/upnp/upnp_context.cpp
+++ b/src/upnp/upnp_context.cpp
@@ -24,7 +24,11 @@
 #include "protocol/upnp_protocol.h"
 
 #include <asio/steady_timer.hpp>
+#if __has_include(<fmt/std.h>)
 #include <fmt/std.h>
+#else
+#include <fmt/ostream.h>
+#endif
 
 namespace dhtnet {
 namespace upnp {