changed variables to support 64bit (>2GB files) on 32bit systems