main loop in c, download in a thread!
c++ project, env not well build