Fixed build scripts errors.