Update makefiles to fix a clean build issue

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Tidy up configure.ac

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
More configure updates

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>