Typecast EGL types to get rid of compile warnings

As the title says.