Thanks to: 


Graham Davison for MacOS support and miscelaneous code bits

Seth Alves for the first cut at the Makefile.am files