remove ::tr1; use strdup when needed