Changes for intel Mac OSX build
Backward port to OSX 10.6 (Snow Leopard)
Merge remote-tracking branch 'upstream/master'
Apparently 0 is a vaid file descriptor in OSX
Merge pull request #138 from Corysia/master

Changes for intel Mac OSX build