[api] fix unique index of product_media and update pool repos

allow multiple definitions using arch filter of same repo
[dist] Use new ruby(abi) require statement