Corrected Makefiles for kernel module build

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Added linux/kernel.h include before rtai

- rtai_vector.h doesn't include linux/percpu.h which it should have

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Now builds as kernel module too

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Updated ignore file for kernel build files

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