further 32 bit cleanup by only using system calls