configure: use LD_O setting in check_ld()