Updated order of makefile LIBs and tidied unused var in src/clerk/scheduler.c