tools/include: Add _RET_IP_ and math definitions to kernel.h