Fix ril class compiling