Fixed use of old 'stat' function that leads to vs build not being able to access large files