Add workaround for missing RTLD_GLOBAL in mosquitto lib loader
Add security_init and security_cleanup