Check constant availability rather than guess based on OS version