hack to fix builds on macos