Unloading of dlls segfauls. ???