fix dylib search issue on mac. reorder rpath to avoid depend lib version conflict.

for linux, executable_path > executable_path/lib
for mac, execautable_path/PlugIns
TODO: ios, android