Fix a bug with the taskmanager when multiple windows from the same application have the same title: make sure to properly select the window that was clicked.

While here, also apply the libLumina dependency order to give preference to the locally/recently compiles libraries during the build if possible in all the lumina tools.