AFAIK UE_SERVER code is still compiled even in non-server builds but WITH_SERVER_CODE is only compiled in server-builds.