fixed 32-bit compilation (nw)