Forgot to prohibit including some files directly.
Add missing includes in textgen.h