Revert "solution for macos build"

This reverts commit 2bfb028eca744b35e3609f217dcec30ee5e0bcbd.