modify src/client.cc (call CoCreateInstance twice when need it)