Fix lua build on linux.
Add cache for images and model files.
Silence warnings in stb_image.h