fixed zygote example on Mac OS X, moved WriteN() to util.cpp to prevent compile warnings on Mac OS X