Warning fixes

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Warning fixes in tests

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
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>
static inline functions break MSVC2010 build. Fixed.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Add newline at the end of fd.h to fix compiler warnings.

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