Add defstruct

Make this a little more 0.13 compatible :)