compat: add strtok_r implementation for platforms that lack that
compat: add inet_aton() for compatibility with platforms that lack one

Signed-off-by: Viktor Juhasz <jviktor@balabit.hu>
Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>