Legend fixed + missing dlls from Qt 4.8

Legend check was broken because of the new Qwt 6.1.0 framework