Fix up automake and compiler warnings