fixed reference count init for streams
changed macos define to macosx
changed watch callbacks to use containos event