mod: improvements, aimed to enabling of cross-compilation
mod: use native std::list::empty() method in method thread_safe_queue<T>::pop(T& )