Put AC_DEFINE symbols definitions directly in the configure script so that we no longer need an acconfig.h. Cleaned up dlopen() tests a bit.