contrib: add compat glue because peak_regex(3) requires...

it on Linux due to strlcpy() usage.