copy dxtc code from libsquish