Add some multi-platform support for Macs.