getlogin_r tests: Port to mingw. * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows.