build: break debug and maintainer flags into separate autoconf variables.