Bug fix: Restore Session windoid error on Mac OS X (issue #14)