Updated build script to only include needed files for API and to discard everything else.