When building libraries, we need to register them if we use the "build" targets