(GL State machine) Make opengl_state_machine.c totally self-contained -
add GLES3/GLES31 ifdefs for later