Define BSD names for various constants

While Linux uses different names for these constants (or the constant is
missing) they are the same across platforms.