Speed up installation of nokogiri libraries

Speed up installation of nokogiri libraries. Thanks @parkr for helping
me solve this!