diff --git a/Main_stub.h b/Main_stub.h
new file mode 100644
--- /dev/null
+++ b/Main_stub.h
@@ -0,0 +1,9 @@
+#include "HsFFI.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+extern void hs_MAIN(void);
+#ifdef __cplusplus
+}
+#endif
+
diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,7 @@
 This is an abbreviated summary; see the git log for gory details.
 
+0.5.7.1:
+    Fix missing files in source dist.
 0.5.7:
     Allow cancellation of server requests if the server doesn't respond.
     Minor UI tweaks.
diff --git a/Version.hs b/Version.hs
new file mode 100644
--- /dev/null
+++ b/Version.hs
@@ -0,0 +1,14 @@
+-- This file is part of Intricacy
+-- Copyright (C) 2013 Martin Bays <mbays@sdf.org>
+--
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of version 3 of the GNU General Public License as
+-- published by the Free Software Foundation, or any later version.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program.  If not, see http://www.gnu.org/licenses/.
+
+module Version where
+
+version :: String
+version = "0.5.7.1"
diff --git a/intricacy.cabal b/intricacy.cabal
--- a/intricacy.cabal
+++ b/intricacy.cabal
@@ -1,5 +1,5 @@
 name:                intricacy
-version:             0.5.7
+version:             0.5.7.1
 synopsis:            A game of competitive puzzle-design
 homepage:            http://mbays.freeshell.org/intricacy
 license:             GPL-3
@@ -12,6 +12,7 @@
 cabal-version:       >=1.8
 data-files: VeraMoBd.ttf tutorial/*.lock tutorial/*.text sounds/*.ogg
 extra-doc-files: README BUILD NEWS tutorial-extra/*.lock tutorial-extra/README
+extra-source-files: Main_stub.h
 
 description:
     A networked game with client-server architecture. The core game is a
@@ -101,7 +102,7 @@
       EditGameState, Frame, GameState, GameStateTypes, GraphColouring, Hex, Init,
       InputMode, Interact, InteractUtil, KeyBindings, Lock, MainState,
       Maxlocksize, Metagame, Mundanities, Physics, Protocol, SDLRender, SDLUI,
-      SDLUIMInstance, ServerAddr, Util
+      SDLUIMInstance, ServerAddr, Util, Version
 
 executable intricacy-server
   if flag(Server)
@@ -120,4 +121,4 @@
   main-is:  Server.hs
   other-modules: AsciiLock, BinaryInstances, BoardColouring, CVec, Database,
       Debug, Frame, GameState, GameStateTypes, GraphColouring, Hex, Lock,
-      Maxlocksize, Metagame, Mundanities, Physics, Protocol, Util
+      Maxlocksize, Metagame, Mundanities, Physics, Protocol, Util, Version
