diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,15 @@
 # Changelog for the Clash project
+## 1.6.5 *Jun 27th 2023*
+
+Fixed:
+
+ * Support building with all combinations of specific versions of our dependencies `hashable` and `primitive`. [#2485](https://github.com/clash-lang/clash-compiler/pull/2485)
+ * The Haskell simulation of the PLL lock signal in `Clash.Clocks` (used by `Clash.Intel.ClockGen`) is fixed: the signal is now unasserted for the time the reset input is asserted and vice versa, and no longer crashes the simulation. HDL generation is unchanged. The PLL functions now have an additional constraint: `KnownDomain pllLock`. [#2420](https://github.com/clash-lang/clash-compiler/pull/2420)
+
+Changed:
+
+ * Export the constructor for the `Wrapping` type in the `Clash.Num.Wrapping` module. See [#2292](https://github.com/clash-lang/clash-compiler/issues/2292)
+
 ## 1.6.4 *Aug 30th 2022*
 Fixed:
 
diff --git a/cbits/PosixSource.h b/cbits/PosixSource.h
--- a/cbits/PosixSource.h
+++ b/cbits/PosixSource.h
@@ -38,17 +38,4 @@
 #define _XOPEN_SOURCE   700
 #endif
 
-#if defined(mingw32_HOST_OS)
-/* Without this gcc will warn about %ull and the like since some msvcrt versions
-   do not support them. See
-   https://sourceforge.net/p/mingw-w64/mailman/message/28557333/
-
-   Note that this is implied by _POSIX_C_SOURCE in the msys2 toolchain that we
-   now use. However, we retain this explicit #define to preserve the ability to
-   bootstrap GHC with compilers still using msys (e.g. GHC 7.10.1 and 7.10.2).
-   This can be removed in for GHC 8.4. See #12951.
-  */
-#define __USE_MINGW_ANSI_STDIO 1
-#endif
-
 #endif /* POSIXSOURCE_H */
diff --git a/clash-ghc.cabal b/clash-ghc.cabal
--- a/clash-ghc.cabal
+++ b/clash-ghc.cabal
@@ -1,6 +1,6 @@
 Cabal-version:        2.2
 Name:                 clash-ghc
-Version:              1.6.4
+Version:              1.6.5
 Synopsis:             Clash: a functional hardware description language - GHC frontend
 Description:
   Clash is a functional hardware description language that borrows both its
@@ -106,9 +106,6 @@
                       TypeOperators
                       ViewPatterns
 
-  if impl(ghc >= 8.6)
-      default-extensions: NoStarIsType
-
 library
   import:             common-options
   HS-Source-Dirs:     src-ghc, src-bin-common
@@ -144,15 +141,15 @@
                       process                   >= 1.2      && < 1.7,
                       hashable                  >= 1.1.2.3  && < 1.5,
                       haskeline                 >= 0.7.0.3  && < 0.9,
-                      lens                      >= 4.10     && < 5.2.0,
+                      lens                      >= 4.10     && < 5.3,
                       mtl                       >= 2.1.1    && < 2.3,
                       split                     >= 0.2.3    && < 0.3,
                       text                      >= 1.2.2    && < 2.1,
                       transformers              >= 0.5.2.0  && < 0.7,
                       unordered-containers      >= 0.2.1.0  && < 0.3,
 
-                      clash-lib                 == 1.6.4,
-                      clash-prelude             == 1.6.4,
+                      clash-lib                 == 1.6.5,
+                      clash-prelude             == 1.6.5,
                       concurrent-supply         >= 0.1.7    && < 0.2,
                       ghc-typelits-extra        >= 0.3.2    && < 0.5,
                       ghc-typelits-knownnat     >= 0.6      && < 0.8,
