It's not 1989

Updated function definitions to new style.
Added definition for _kbhit.