TDirectory parse speedup (buffer overflow safe)
Fix portability of previous patch