fixed compilation errors of EGL ApplicationContext class
fixed test