fixes for 1.8.7
fix mime-types dep for Ruby 1.8