Fix notification system in OSX recent versions