Removed APPLE as UNIX is true on OS X.
Added setting of _NET_WM_PID.