stb_image port:
  - remove almost usage of char instead of ubyte, removes a lot of casts
  - remove thread-local bugs (lesson: don't use __gshared with static)