configure: fix compiler detection