build: use autotools

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
build: support disable iconv for static build

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
packaging: add spec file

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
cleanup: convert C++ style comments to C style

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
cleanup: do not use obsolete bzero

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
cleanup: cleanup trivial pedantic warnings

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>