Add a USE_WEBGL2 pref.

I did these misc fixes now. Feel free to just fix them directly when they are noncontroversial.