fix mac dylib loading