Updated autotools chain to build unit tests out-of-source.