Don't include inttypes.h/sys/int.h when stdint.h will do
Include direct.h for _WIN32 and unistd.h for non-WIN32