Use minimized library
Fix refcard metrics conversion.