Improved build system + rtai kernel module init/exit

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