[polyml] Binary compatibility and static linking