configure: Revert some incorrect uses of check_cc()