Removed strndup because it is already defined in glibc; causing a conflict.
This is probably not the right way to do this, it will probably break for someone.