Removed uneeded scancode_table.
Added a static linking hack to library_load.
Fixed two constructor related crashes on X11 platforms.
Fixed a couple of issues with scancode constants.
Fixed some X scancode lookup errors.