Link the core with CoreServices, not with Carbon, and don't use any Carbon
routines. As of 10.1 using Carbon will crash Python if no window server is
available (ssh connection, console mode, MacOSX Server). This fixes bug
#466907.

A result of this mod is that the default 8bit encoding on OSX is now ASCII,
for the time being. Also, the extension modules that need the Carbon
framework now explicitly include it in setup.py.
diff --git a/configure.in b/configure.in
index dd724ae..f90b692 100644
--- a/configure.in
+++ b/configure.in
@@ -655,7 +655,7 @@
 fi
 case "$enable_toolbox_glue" in
 yes)
-	extra_frameworks="-framework Carbon -framework Foundation"
+	extra_frameworks="-framework CoreServices -framework Foundation"
 	extra_machdep_objs="Python/mactoolboxglue.o"
 	extra_undefs="-u __dummy -u _PyMac_Error"
 	AC_DEFINE(USE_TOOLBOX_OBJECT_GLUE)