Merge pull request #867 from vit9696/patch-1

Fix compilation from within a macOS kernel extension