I still think that include/pqsql/postgres_ext.h is needed when trying to compile the Qt5 postgres driver. Will take a look soon.