Remove hard-coded star squish
Open text files with "rb" instead of "r"

Windows translates CR/LF to LF when loading text from a file opened with
"r". This causes the read length to fall short of the stat length, which
falsely implies error.
Add glActiveTexture back in (for now)