Back-ported GNU build system (autoconf, automake, etc.) support from
bitcoin repository.  Builds (without Qt) on Mac OSX.