Use Nokogiri instead of Hpricot
Require nokogiri before RMagick to avoid it loading the system XML library
Fix infinite loop when calling Magick.formats
Remove trailing whitespace
Rmagick4j is not enough for PDFBeads. Sorry, no jRuby support for now.