More work with regards to compatibility with automake. As best as I can tell, everything builds as it should, with the exception of the tests since these depend on gtest and this has not yet been integrated correctly.