support a larger maximum filesize
Fix issue where curr_filesize can roll over

Big files might just grow unbounded.
change linker flag order for picky machines