http client: Fix some compilation errors