Ruih/fix text track refactor 64 bit build and buffer overflow