Some enhancements to autotools

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