Don't define _POSIX_SHARED_MEMORY_OBJECTS.

This isn't implemented, so don't define it.
Add compat sys/socketvar.h

This is required by xmlvm's hysock which is needed for the
benchmark.test_zzz_java_nbody test.