Fix build script.
Abandoned plans for OOP API.