diff --git a/cbits/pipewire_hacks.h b/cbits/pipewire_hacks.h
new file mode 100644
--- /dev/null
+++ b/cbits/pipewire_hacks.h
@@ -0,0 +1,16 @@
+#include <pipewire/pipewire.h>
+
+// Pipewire defines some functions via macros, which can't be directly invoked via c2hs,
+// so we need these wrapper functions.
+//
+// Might be fixed in future: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2808
+
+struct pw_registry* pw_core_get_registry_(
+  struct pw_core *core,
+  uint32_t version,
+  size_t user_data_size);
+
+void pw_registry_add_listener_(
+  struct pw_registry* registry,
+  struct spa_hook* listener,
+  struct pw_registry_events* events);
diff --git a/monomer-flatpak-example.cabal b/monomer-flatpak-example.cabal
--- a/monomer-flatpak-example.cabal
+++ b/monomer-flatpak-example.cabal
@@ -1,6 +1,6 @@
 cabal-version: 1.12
 name:          monomer-flatpak-example
-version:       0.0.13.0
+version:       0.0.13.1
 license:       MIT
 license-file:  LICENSE
 maintainer:    garethdanielsmith@gmail.com
@@ -28,7 +28,10 @@
     main-is:            Main.hs
     build-tools:        c2hs >=0
     pkgconfig-depends:  libspa-0.2, libpipewire-0.3
-    c-sources:          cbits/pipewire_hacks.c
+    c-sources:
+        cbits/pipewire_hacks.h
+        cbits/pipewire_hacks.c
+
     hs-source-dirs:     app
     other-modules:
         Bindings.PipeWire
@@ -53,16 +56,16 @@
         -Wredundant-constraints
 
     build-depends:
-        async <2.3,
+        async >=2.2.4 && <2.3,
         base >=4.7 && <5,
-        bytestring <0.12,
-        containers <0.7,
-        data-default-class <0.2,
-        dbus <1.4,
+        bytestring >=0.11.5.2 && <0.12,
+        containers >=0.6.7 && <0.7,
+        data-default-class >=0.1.2.0 && <0.2,
+        dbus >=1.3.1 && <1.4,
         desktop-portal >=0.3.2.0 && <0.4,
-        directory <1.4,
-        modern-uri <0.4,
-        monomer <1.6,
-        monomer-hagrid <0.4,
-        random <1.3,
-        text <2.1
+        directory >=1.3.7.1 && <1.4,
+        modern-uri >=0.3.6.1 && <0.4,
+        monomer >=1.5.1.0 && <1.6,
+        monomer-hagrid >=0.3.1.1 && <0.4,
+        random >=1.2.1.1 && <1.3,
+        text >=2.0.2 && <2.1
