MP1-4155: fixed memory leak with libcurl
changed creating threads from CreateThread() to _beginthreadex/_endthreadex
changed waiting for thread end to infinite (needs testing, all threads should end in specified time)
applied network interface parameter to all protocols
added  finish time to HTTP and MMS protocols (RTMP, AFHS and MSHS doesn't wait)