Fixing strdup for windows