fixed compilation errors in proxy.c