PMC: moved PMCImpl base class to lib