Lorenzo, if you could replace the calls to memcpy with a for-loop that will address Mike's concerns about linking with memcpy.
for (int i=0, ptr=beginAddress; i<sizeof(struct); i++,ptr++) *ptr=0; 
I'll merge & do a release this weekend.