Add a hack to workaround controller event loss issues on Linux and OS X