Autotools build tweaks.

Mostly just consistency with main bitcoin build.