add more build flags for sgx