build: remove dead code
build: fix make distcheck, when builddir != srcdir