Use shared storage extension on OS X
Add getCurrentFrame(), setFrame, getTotalNumFrames(), currently OS X only as untested on Windows.
Properly initialize and reset member variable