Fix gem install on versions < 1.9.

 * nokogiri ~> 1.5.10
 * mime-types ~> 1.24