factor out build script per language for memory and performance reasons