Fix for OS X; the structure wasn't being zero-initialized as I expected.
Merge pull request #390 from ey6es/master

Fix for OS X structure initialization.