Reset the dlopen flags
unused variables
Just remove the whole nonsense
Merge pull request #264 from rmcgibbo/reset-dlopen-flags

Fix weird import segfault with RTLD_GLOBAL