Add local strdup to make mingw happy.