Enable successful build on Mac OS X

Changes are not actually Mac OS X specific, but update the use of aclocal, autoconf, automake in order for a successful build on Mac OS X, and the update should work for all platforms.