For Matlab >= 2013a on osx, use renamed SDKROOT macro, MW_SDKROOT
(cherry picked from commit 9a21667e69fbb305a8f4a6348e6a7b89e2d5808f)