adding EAGL2, fixed some CMake issues
compilation errors fixed
fixed iOS depends issues