Functional plugin system, using dlopen.