rtapi_app: switch to factored-out functions in rtapi_compat.c
include rtapi_compat.h where needed

delete unused rtapi_kdetect.h references
startup/rtapi_msgd: catch xenomai install issue