qwt: designer plugin fix and new build options

Designer plugin now works. Added option to build as libs instead of framework. Added qwtmathml option, which is now _not_ built by default.
Please don't change stuff like this; I think the previous version is far more readable to people less experienced with Ruby. I've been writing Ruby daily for a few years now and I still forget what most of these do.