Added mystrdup() to avoid error on some platforms