Support more build environments for Mac.