ported back to Think C
diff --git a/Mac/Modules/snd/Sndmodule.c b/Mac/Modules/snd/Sndmodule.c
index 7836cf1..9f5c24d 100644
--- a/Mac/Modules/snd/Sndmodule.c
+++ b/Mac/Modules/snd/Sndmodule.c
@@ -36,7 +36,7 @@
 
 #ifndef HAVE_UNIVERSAL_HEADERS
 #define SndCallBackUPP ProcPtr
-#define NewSndCallBackProc(x) (x)
+#define NewSndCallBackProc(x) ((SndCallBackProcPtr)(x))
 #define SndListHandle Handle
 #endif
 
diff --git a/Mac/Modules/snd/sndsupport.py b/Mac/Modules/snd/sndsupport.py
index 2181cd1..fb561e8 100644
--- a/Mac/Modules/snd/sndsupport.py
+++ b/Mac/Modules/snd/sndsupport.py
@@ -21,7 +21,7 @@
 
 #ifndef HAVE_UNIVERSAL_HEADERS
 #define SndCallBackUPP ProcPtr
-#define NewSndCallBackProc(x) (x)
+#define NewSndCallBackProc(x) ((SndCallBackProcPtr)(x))
 #define SndListHandle Handle
 #endif
 """
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c
index aaf644c..57ec20a 100644
--- a/Mac/Python/macgetargv.c
+++ b/Mac/Python/macgetargv.c
@@ -41,6 +41,10 @@
 #include <AEObjects.h>
 #include <Desk.h>
 #include <Fonts.h>
+#include <TextEdit.h>
+#include <Menus.h>
+#include <Dialogs.h>
+#include <Windows.h>
 
 #ifdef GENERATINGCFM	/* Defined to 0 or 1 in Universal headers */
 #define HAVE_UNIVERSAL_HEADERS
@@ -147,7 +151,6 @@
 {
 	static char appname[256];
 	FSSpec appspec;
-	long size;
 	
 	if (current_process_location(&appspec))
 		return NULL;
@@ -282,6 +285,9 @@
 static void
 init_mac_world()
 {
+#ifdef THINK_C
+	printf("\n");
+#else
 	MaxApplZone();
 	InitGraf(&qd.thePort);
 	InitFonts();
@@ -290,6 +296,7 @@
 	InitDialogs((long)0);
 	InitMenus();
 	InitCursor();
+#endif
 }
 /* Get the argv vector, return argc */