API and build system improvements