Remove CHECK_GL, -flto for release builds, add Texture class stub.
Various changes.