dynamically load EGL as needed
add support functions for compositing