Developing Open-Source Software RTOS with Functional Safety in Mind