fixed building on MacOS