move inclusion of unistd.h before POSIX feature test macros (for usleep)