Misc fixes

- Make pcre optional again.
- Disable locale when dumping profiles.