pkg: add patches to fix warnings caused by oonf_api

This PR fixes 141 of the compile time warnings caused by --pedantic by simply copying @Kijewskis 's implementation from `core/include/kernel_macros.h`

You should test if everything still works... ;-)

Edit: I've added a few patches that fix the rest of the warnings. Please test.