Fix gen_from_xml.rb's incorrect paths.
Fix error with TYPE_VOIDP being used incorrectly.

Not sure how I didn't spot this..
Version 1.0.1