fixed memory problem with uploads > 2G on 32-bit Perls