Converted to autotools for build process