Linux/MacOSX: Implement waiting dialog for lengthy operations in order to have a better user experience.