add build script for Qt

Linking to Qt is requiered if building with Gaia,
the new script builds qt statically
Enable static builds with gaia