set PHP_AUTOCONF and PHP_AUTOHEADER before calling phpize

fixes issue #757