using more elaborate preprocessing to account for Mac SDKs