add <cstddef> to missing files, and other fixes
Merge pull request #62 from da2ce7/master

Fix bugs introduced in last pull request.