XTYPES_USED fixes

Not using XTYPES_USED still gets some trouble when compiling. These
fixes get this matter closer.
Add nuttx RTOS
WIP of the chat over FreeRTOS prototype