diff -ur rftg-0.6.1/osx/RFTG.xcodeproj/project.pbxproj rftg/osx/RFTG.xcodeproj/project.pbxproj
--- rftg-0.6.1/osx/RFTG.xcodeproj/project.pbxproj	2009-10-02 15:50:44.000000000 -0400
+++ rftg/osx/RFTG.xcodeproj/project.pbxproj	2010-01-11 11:42:42.000000000 -0500
@@ -7,6 +7,7 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
+		0F1EE65210FB89A50013BB85 /* loadsave.c in Sources */ = {isa = PBXBuildFile; fileRef = 0F1EE65110FB89A50013BB85 /* loadsave.c */; };
 		15409F750DCB9D6C00BC6E83 /* GLib.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15409F740DCB9D6C00BC6E83 /* GLib.framework */; };
 		15409F790DCB9D7A00BC6E83 /* Gtk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15409F780DCB9D7A00BC6E83 /* Gtk.framework */; };
 		15409F7D0DCB9D8800BC6E83 /* Cairo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15409F7C0DCB9D8800BC6E83 /* Cairo.framework */; };
@@ -25,6 +26,7 @@
 
 /* Begin PBXFileReference section */
 		089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+		0F1EE65110FB89A50013BB85 /* loadsave.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = loadsave.c; path = ../loadsave.c; sourceTree = SOURCE_ROOT; };
 		15409F740DCB9D6C00BC6E83 /* GLib.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLib.framework; path = /Library/Frameworks/GLib.framework; sourceTree = "<absolute>"; };
 		15409F780DCB9D7A00BC6E83 /* Gtk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Gtk.framework; path = /Library/Frameworks/Gtk.framework; sourceTree = "<absolute>"; };
 		15409F7C0DCB9D8800BC6E83 /* Cairo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cairo.framework; path = /Library/Frameworks/Cairo.framework; sourceTree = "<absolute>"; };
@@ -92,6 +94,7 @@
 		29B97314FDCFA39411CA2CEA /* RFTG */ = {
 			isa = PBXGroup;
 			children = (
+				0F1EE65110FB89A50013BB85 /* loadsave.c */,
 				D590CCBE106ECCD400AAB072 /* rftg.icns */,
 				D586A9EB106EC740000716A2 /* ai.c */,
 				D586A9EC106EC740000716A2 /* engine.c */,
@@ -214,7 +217,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "cp $SRCROOT/osx_config.h $SRCROOT/../config.h";
+			shellScript = "v=$(perl -lnwe \"print \\$1 if /^PACKAGE_VERSION='(\\S+)'/\" ../configure)\nsed \"s/%VERSION%/$v/g\" $SRCROOT/osx_config.h > $SRCROOT/../config.h";
 		};
 /* End PBXShellScriptBuildPhase section */
 
@@ -228,6 +231,7 @@
 				D586A9F2106EC740000716A2 /* gui.c in Sources */,
 				D586A9F3106EC740000716A2 /* init.c in Sources */,
 				D586A9F4106EC740000716A2 /* net.c in Sources */,
+				0F1EE65210FB89A50013BB85 /* loadsave.c in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
diff -ur rftg-0.6.1/osx/osx_config.h rftg/osx/osx_config.h
--- rftg-0.6.1/osx/osx_config.h	2009-09-26 17:33:52.000000000 -0400
+++ rftg/osx/osx_config.h	2010-01-11 11:32:09.000000000 -0500
@@ -47,16 +47,16 @@
 #define PACKAGE_NAME "rftg"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "rftg 0.5.4"
+#define PACKAGE_STRING "rftg %VERSION%"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "rftg"
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "0.5.4"
+#define PACKAGE_VERSION "%VERSION%"
 
 /* Define to 1 if you have the ANSI C header files. */
 #define STDC_HEADERS 1
 
 /* Version number of package */
-#define VERSION "0.5.4"
+#define VERSION "%VERSION%"
