Fix for OS X; the structure wasn't being zero-initialized as I expected.