Fixes for Windows, fix index off by one for chunk tables.