[DEV] add the linker on MACOS API event handler