Added APIs to allow building

Fixes #29