Fixed crash on 64bit systems with certain saves in crypto.c, and other FS changes.