Compilation fixes for C code.