Specify ruby version, gpref, and libmagic in build requirements