built the distribution into the lib package and flag it as main