Cleaner nested unpacking, as well as general robustness improvements.
Turns out the LFLAGS stuff was from upstream not trusting pkg-config on
their boxes, but it works great for us. (Or rather, it works great after
fixing some of their pkg-config invocations.)
Assisted by the diffoscope ( https://diffoscope.org/ ) and readelf
grepping based on its output.