Not removing library paths is necessary for QFileDialog to function correctly on Linux when using Qt5.