Port notificator and macnotificationhandler from bitcoin to compile against qt 5