Always use C locale to dump profiles.
Make pcre really optional.
Merge pull request #40 from ktf/misc-fixes

Misc fixes