Fix Clang build by setting kbhit() to static

Clang/Xcode build complains about kbhit() being non-static
due to having static local variables. Adding static to its
definition silences the error without affecting other
platforms.