Rename strndup to f_strndup

With strndup it failed to compile under Arch Linux. Also, names starting with
str* are reserved in C89 / ANSI C (section 4.13.7) and C99 (section 7.26.10).