[build] upgrade build system to use autotools

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>