Revert "fix the mac build"

This reverts commit 61d94ed2651b10bb05e71c70193255376f9f35f8.