Fix MSVC compiling warnings and remove an unused texture