THRIFT-2912 Autotool build for C++ Qt library is invalid

* Fix incorrect AC_PATH_PROGS usage
* Exclude generated source code from distribution