Why though? This seems to be at the heart of the problem for you. Why not let these be ordinary libraries?