libslc: Use more here documents in build.sh