os: dragonfly support

Make the os package build and work on dragonfly.

R=bradfitz
CC=golang-dev
https://codereview.appspot.com/13183044