Update private header, add protection from laptop lid closed random input bug in OSX