build: Revert "build: GYP support"

This reverts commit 1ef915eb8e3a1fc033150ae5f61cb6f9be7cf081.
build: implicitly set autogen.sh working dir
build: add copyright note to autogen.sh, unify automake files