Wrote a strdup function because of problems with support between compilers