Avoid build errors on Qt4 and Qt5.

* configure.ac
  - Create Makefile.qmake after ${ac_abs_top_builddir} is set.