Add missing dlfcn.h include for flag defintions.