diff --git a/CHANGES b/CHANGES
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+0.2.5 - 140928
+* fixed compilation with GLFW-0.5.2.*
+
 0.2.4 - 111122
 * adjusted for version 2.5.0 of the library
 * moved random number generator into the example
diff --git a/dow.cabal b/dow.cabal
--- a/dow.cabal
+++ b/dow.cabal
@@ -1,5 +1,5 @@
 Name:                dow
-Version:             0.2.4
+Version:             0.2.5
 Cabal-Version:       >= 1.2
 Synopsis:            Dungeons of Wor
 Category:            game, reactivity, FRP
@@ -15,7 +15,7 @@
   discrete streams as first-class values.
 
 Author:              Patai Gergely
-Maintainer:          Patai Gergely (patai@iit.bme.hu)
+Maintainer:          Patai Gergely (patai.gergely@gmail.com)
 Copyright:           (c) 2010-2011, Patai Gergely
 License:             BSD3
 License-File:        LICENSE
@@ -43,5 +43,5 @@
 Executable dow
   HS-Source-Dirs:    src
   Main-IS:           Main.hs
-  Build-Depends:     base >= 4 && < 5, elerea >= 2.5.0, OpenGL >= 2.4, GLFW >= 0.4, array, directory, mersenne-random
+  Build-Depends:     base >= 4 && < 5, elerea >= 2.5.0, OpenGL >= 2.4, GLFW >= 0.5.2 && < 0.5.3, array, directory, mersenne-random
   GHC-Options:       -O2 -fno-warn-deprecated-flags
diff --git a/src/Game.hs b/src/Game.hs
--- a/src/Game.hs
+++ b/src/Game.hs
@@ -47,7 +47,7 @@
 
       mkGame 0 = playGame storeScore renderGame newActor levels keyPress 1
       mkGame 1 = playGame storeScore renderGame newActor levels keyPress 2
-      mkGame _ = return (pure closeAction,pure True)
+      mkGame _ = return (pure (void closeAction),pure True)
 
   keys <- memo (keySet1 <$> keyPress)
   (output,_) <- switcher . flip fmap highScore $ \score -> do
diff --git a/src/Main.hs b/src/Main.hs
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -36,7 +36,7 @@
   windowSizeCallback $= setViewport aspectRatio
 
   closed <- newIORef False
-  let closeAction = writeIORef closed True
+  let closeAction = writeIORef closed True >> return True
   windowCloseCallback $= closeAction
 
   clearColor $= Color4 0 0 0 1
