Pre-release fixes to autotools setup

Refactored autotools setup to handle Sphinx and Lcov correctly

Moved zlog_init call in test setup