[build] RTAI build fixes

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
[feature] [rtai] add condition variables

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>