I'm running MacOSX, so I'm not sure if it is also necessary for the rest to do so, but adding #include <stddef.h> allowed me to compile this project. Also, I've started testing @Thekla's branch Thekla#1 so do take a look if you find this interesting!