struct timeval isn't defined in time.h, at least not on musl. And since we
need that value for struct input_events, let's include the header for that
struct. That'll sort out the includes for free.
Fixes #371
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>