Fixed build issues with RTAI build

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