Add support for M1-based Macs, while retaining existing support for Intel-based Macs and Linux devices.