Move macos flags to darwin file.