chan_lcr: fixed compile problems with newer versions of asterisk