Use QMutex instead of std::mutex to allow compilation with non-compliants compilers