Drop-in replacement for strdup(3) from libc