fix to osx sdk detection

There was a missing parenthesis in the conditional, and a recursive variable with MAC_OS_SDK_ROOT. This should fix it.

With this, mac osx and Android are working for me !