Start updating api for use within build scripts and add a basic build script

Also fixes build on current rust nightly.