Added WSAPI initialization code