[configure] fix goldlinker check (closes #13647)

this should fix configure errors when configure finds libraries but not the headers.

jenkins build this please