fix apple build