Initial autotools support

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>