Mac: implement support for dynamic plugins