libafscp: Use strdup, rather than rolling our own