Fix warnings about deprecated function XKeycodeToKeysym.

Use XGetKeyboardMapping instead.
Merge pull request #19 from noodlylight/master

Fix warnings about deprecated function XKeycodeToKeysym.