Down to 27 errors, mostly related to textures
Issue #107 and #108 should be closed with this commit (untested)