r5253: need to pre-declare some structures