fix: boost ptree to typedef
fix: better headers; should fix os x compilation fail