fix checkheaders when libdirac not installed