fix for checking whether Notification Center is available
merged 'build' branch from origin
merger with remote origin
fixed notification center exception on OSX10.7