make gcc-types.c compile

This adds gcc-types.c to the gdb build and fixes a few minor bugs
preventing it from compiling.