build: correctly use AC_LANG_PROGRAM