delphi: Fix IP address lookup on Linux if host is already in dotted decimal format

Use CNetDB to get access to POSIX gethostbyname, that works as expected,
instead of the broken ResolveHostByName function.