build: post-process package db to make libraries portable