Fix Building on OS X Homebrew

These changes adjust how libchardet is accessed in both the configuration
and source files to allow compilation on an OS X system using the
Homebrew system.