Just have init_progfile_dir() take a void pointer.