Condition variable functions in separate DLL