Fix apple build