(core+platform+shmif) portability fixes, more build-combinations back to working, workaround for GLES2,3 vs GL2 incompatibility