test: Use standard C rather than POSIX API Windows does not use the same functions signatures and generates a lot of warnings.