Fixed dylib lookup on macx