Adding initial support for registries as libraries