dirPagination: name the compile & link functions

Makes debugging better since the functions will be named in the stack
trace.