fixed issue where structure was being read after closing, sometimes returning junk data
allow users to add include dirs by passing args to cmake