remove some GCC warnings introduced by improperly casting to (char*) instead of ...