change build system to automake