libnotmuch: build symbols list without relying on gcc -aux-info.