Revert "fixed build for mac"

This reverts commit 5baffa39ca77a632168c7addb647af59a18fe057.