Add unique constraint to library name.