Fix the order of -l flags to fix compiling libketama