Apply stat64 hack

After SQLite version update its file did not have this workaround.