native: migration to cc files part 2 (almost all files). make it build