bstr: add function for splitting UTF-8
player: add --term-osd-bar, which shows a status bar on the terminal

Feature request from github issue #451. Disabled by default, will
probably stay this way.
w32_common: add extended keys

Also VK_APPS/MP_KEY_MENU was missing.