Fix dylib loading problem