Remove redundant checks from gccjit.c.
Add an error handling section to gdb_dlsym in gdb-dlfcn.c