use gles only on arm
fix path problem windows, buffer size, and procaddress issues (hopefully fixes macosx too)