M4: More robust generated build scripts.
This prevents issues with autoconf macros, etc.
Doxygen: fix build on SmartOS