Fix getNotification for Windows by using threadDelay

I had to make 'errfd' one big line, since string gaps and CPP don't get along.