Fix pkg register complaining about shared libraries not found
Fix pkg register complaining about shared libraries not found

Fixes: #656

khorben/pkg,skoef/pkg,khorben/pkg,khorben/pkg,Open343/pkg,en90/pkg,Open343/pkg,junovitch/pkg,en90/pkg,junovitch/pkg,skoef/pkg