multi-platform
"Merge pull request #1 from mattn/windows\n\nmulti-platform"
workaround for osx: cast fd to uintptr.

I'm not sure that this can be worked on freebsd
Merge branch 'multi-platform'