fix bug :'Init Socket Semaphore failed on mac'