Detect MacOS and through an error message if run on that platform