build: more headers and variables in configure