strndup is not standard so provide an implementation. svn path=/trunk/netsurf/; revision=10474
svn path=/trunk/netsurf/; revision=9780