rework templates to include egl
add null warning to LOAD_GLES
cleanup egl init