Fixed my own stupid mistake of not noticing the 'n' in #ifndef. strdup should work as it was again...