Move the compiler-selecting methods to ENV/shared

This patch moves the compiler-selecting functions from `extend/ENV/super.rb` to `extend/ENV/shared.rb`, and removes the corresponding functions from `extend/ENV/std.rb`.