Refactor C Library Installation

This removes some of the hard coded assumptions and instead delegates to the upstream build system.