Remove strndup

Never used, and causes problems compiling on MinGW (see #7 )