Fixed dlopen entry point retrieval mechanism.

Added missing dlopen macro to config header template.