Moved locale setting from EI() to ERML(), changed encoding for russian locale, fixed several shader management errors, moved OpenGL function list to common.h, added immediate uniform types, added GIF header checks