Eliminate undefined variable warnings on Ruby 1.8.7