make device.c aware of win x64 file descriptors

introduced new fd.h header for platform dependent typedefs for file descriptors
Missing file added to autotools build system

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>