converted a couple of structure declaration in pointers, fixed build errors with version 1.2.1