netwatch: add support for Mac OS X

Tested on OS X 10.9.1.