Updated build system to configure.ac style