[PD-dev] Multi-instance support for libPD