Fix for typedef'ed struct issue

closes #29