Avoid BasicObject, because it doesn't exist in ruby 1.8.

If this becomes a problem, could do a version switch in the future.