Add #if in socket_security too.