fix checks for SDK and native builds