Fix compile issue with newer CAF versions.