SERVER-10275 Use size_t in pathsupport function