Fix MSYS2 building.
Do not check root user under MSYS2.