ncc: use forward function declarations