xlc compiler on OSX is not anymore supported.
simplify detection of OSXSDK and IOSSDK.
set MACOSXVERSION also when cocoa is disabled.
Only register temporaries for which lifetime extension is actually required.