fixup the dylib issue in mac