structs: fix nil pointer including, fixes #20