Revert "fix the mac build"

This reverts commit 1cde3e5c3b0fab03623a22b1e6f61b0f147303a9.