linux compatibility fixes (large file support)