[gles] Refactors log macro and functions to an implementation file. Fixes #import used in C++ compiler (too much OBJ-C lately ;) )