Make things work on macos