posix_* functions don't exist on !UNIX platforms. Adding workarounds.