Avoid putting a duplicate -arch i386 into CPPFLAGS, it prevents ccache from working.
Fix a warning.
Remove the #ifdef HAVE_SGEN_GC dependency from main.c by using a separate main-sgen.c file for sgen.