fixes for the tests to compile successfully on macos