rtapi_compat.c fix

proposed fix for #192