copy Mac main code to Linux to allow testing on Linux