Fix build for non-curl configurations