Remove libtool hack which does not seem to be required anymore.
Add Y specific endian.h
Use SA_RESETHAND instead of SA_ONESHOT, available on Linux and FreeBSD.
Make evdev and sdl optional. Check if -ldl is required.
Remove a bunch of unused variables and functions.
Include Y/endian.h to get endian checks working under FreeBSD
Fix write after end of array.
Do not use gnu style struct initializers.
Add -lpthread to link and not compile flags.
Fix class vs struct in parameters.
Rename endian.h to yendian.h, conflicting under Linux
Actually check for linux headers.