Tru64: the socket API defines must come early.

There seems to be no way around needing to select the socket API early.
Add various *BSD O_ constants.