Extract C library to subspec.