better mac sdk detection