expose compat mode availability to ruby