Force GCC linker to see that we need pthread to work around nvidia driver bug.
Sometimes the compiler/linker notices that the workaround static function was never reached and optimizes the function away. To workaround this issue we explicitly call the function when ESC is pressed.