readdir() returns NULL (errno=EOVERFLOW) for 32-bit user-static qemu on 64-bit host