Fix  global flags for static linking
* Add patch for building static qmake
* Extend patch for mkspec
* Fix Qt scripts to support static build