stipping down for use as an embedded library via cmake