configure: Use the right variables in check_host_cpp