ntdb: Cast getpid() result to unsigned int for GNU/Solaris build