Restructure ctypesgen Python build to support external C library
This MR patches the cmake instructions for the ctypesgen
Python library build to support linking against an external C library. This is very useful for the Conda package builds where we build the C library once, then separately build the Python library many times.