Merge changes Ia1777fd4,I3998d88b

* changes:
  Unify unistd.h.
  Use attribute availability.