Fix detection error whether GTK+ is built with debug mode

AC_LANG_PROGRAM macro requires two argument, prologue and body.
So changed to use AC_LANG_PROGRAM([prologue],[body]) style.

ref. http://www.gnu.org/software/autoconf/manual/autoconf.html#index-AC_005fLANG_005fPROGRAM-1168