Error trying to compile our own OpenWrt image

The issues you raise have absolutely nothing to do with MikroTik’s patches. MikroTik’s patches do not touch any of the files you mentioned whatsoever.

– Nathan