THRIFT-2098 Add support for Qt5+

It's to resolve a build error I experienced (with Qt5 only) that said I need -fPIC with "reduce_relocations"-enabled version of Qt