In order to fix the access violation error you will need to modify slapshot_io's code a little.

Include some additional header files:

#include <stdlib.h>
#include <malloc.h>

Then change the...