Two fixes for Ruby 1.9 support in QMFv1

The two most recent commits on my fork make QMFv1 work under Ruby 1.9 (which is critical for Fedora 17, among other environments).