build and install C-compatible libraries
copied from cf-staging / cargo-ccargo applet to build and install C-ABI compatible dynamic and static libraries. It produces and installs a correct pkg-config file, a static library and a dynamic library, and a C header to be used by any C (and C-compatible) software.