Made into a library

I needed the wc functionality, but as a library.  I kept your code and massaged it into a library.  The new code is in the "libgowc" sub-directory.