Changes as follows:

* Added vt(4) to EVDEV kernel config
* Fixed /dev/input/event%d device numbering
* Fixed uinput evdev_alloc()/evdev_free() to prevent memory leaks