Just to clarify, you've copied cpp files from src into headers? If so, why?
No I haven't copied the .cpp files from src. I have copied time.h,
_timeval.h and _types.h from src/libs/compat/freebsd_network/compat/sys
into headers/compatibility/freebsd/sys
Should I do it differently?