PolyOrb-hi-C code modifications to implement middleware for FreeRTOS