These turned out not to be specific to OS X, the code had never properly been conditionalized for the general case.