Qt: Make it possible to build qt5 variant static
* qt/main.cpp: Import static platform plugins when necessary.
As pkg-config does not expose all libraries needed to link
qt5 statically with this patch it is possible to get a
static build by setting the LIBS variable correctly.