This logic reminds me somewhat of the `install_prebuilt` function. Maybe we can make a `install_prebuilt_library` function that can be used to install `libpcre`, `libffi`, and `libgmp`. That would consolidate the logic nicely. I was already thinking that my library installs were getting repetitive.