64-bit fixes for processwd.c