Make autoconf tests structure consistent with source files in lib/.