Fix for opaque pointer typedefs

closes #30