BUG: fix for build on macos