intel64: rewrite tools/nearest_symbols in Ruby