Fix warnings from compilers stricter than MS Visual C++ and fix Linux
of toktx.