Pass deployment_target and sdk_version to targets through env vars
Generate Entitlements.plist for extensions
Remove unneeded code