[bugfix] fix compilation error on mac
[bugfix] fix the name of dynamic lib on mac