Fix implicit declarations in C files