(360 Salamander) Build fix/make dir_list C89-compatible