Updated the underlying C API files.

Incorporated the latest version of C files in to Pattern wrapper.