SGX detection procedure for applications

SGX detection procedure for applications