Add language.c/.h and fix some headers