Moved MacOS things to separated file