extern c in gc.c and profile.c