Enhancement of Win32 compatibility

* Added script for detection of Qt version
* Updated packaging
* Cleaned code