It only wont have them initialized until the other thread finishes, you dont need to initialize those libraries per thread, only once. That is what I was saying. Every time I've used the library till now with that compilation it hasn't been a problem. This is the best solution I have found so far, but tomorrow I will ask a friend if he knows a better solution. (Still, it is better than nothing)