fix more builds on darwin