fixes ruby 1.9 load issue

verified the code and tests work on 1.9 and 1.8.7