Adds option to truncate host name to Netbios len

In some scenarios it is necessary to limit the length
of the host name to the maximum length allowed by Netbios.

The "netbios_host_name_compatibility" option can be used to
control this behaviour.