config.h.in: add define for HAVE_STRNDUP

This fixes compile problems on various systems where strndup
can be found but the HAVE_STRNDUP define is not being set.

V2: Made the changes that Petri Latvala suggested. However the
    exact line for the define of HAVE_STRNDUP needed to be
    placed next to the other function defines in config.h.in