Rewrite stub generator to also generate CMakeLists
This combines the C function stub generator and
the Objective-C class generator.
It also detects the dylib current and compat
versions.
It basically creates a stub folder that you can
copy directly into /src.